//项目入口文件
import Vue from 'vue'
Vue.config.productionTip = false

//导入根组件
import App from './App'

//导入路由组件
import router from './router'

//导入轮播图插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

//导入移动端项目初始化样式
import 'styles/reset.css'
import 'styles/border.css'
import fastClick from 'fastclick'
fastClick.attach(document.body)

//导入图标样式
import 'styles/iconfont.css'

//导入数据管理工具vuex
import store from './store/index.js'

//引入babel-polyfill以让浏览器适应es6语法
import 'babel-polyfill' 

new Vue({
  el: '#app',
  router,//把路由挂载到vue实例上
  store,//挂载store状态管理对象   
  components: { App },
  template: '<App/>'
})
